namespace W2R.Core.Migrations
{
    using System.Data.Entity.Migrations;
    
    public partial class AddAuditoryFieldsToBaseEntity : DbMigration
    {
        public override void Up()
        {
            AddColumn("Tags", "CreatedBy", c => c.String(nullable: false));
            AddColumn("Tags", "CreatedOn", c => c.DateTimeOffset(nullable: false));
            AddColumn("Books", "CreatedBy", c => c.String(nullable: false));
            AddColumn("Books", "CreatedOn", c => c.DateTimeOffset(nullable: false));
            AddColumn("Users", "CreatedBy", c => c.String(nullable: false));
            AddColumn("Users", "CreatedOn", c => c.DateTimeOffset(nullable: false));
        }
        
        public override void Down()
        {
            DropColumn("Users", "CreatedOn");
            DropColumn("Users", "CreatedBy");
            DropColumn("Books", "CreatedOn");
            DropColumn("Books", "CreatedBy");
            DropColumn("Tags", "CreatedOn");
            DropColumn("Tags", "CreatedBy");
        }
    }
}
